<?php 
namespace app\admin\model;
use think\Model;
class Owner extends Model{
	public function getStatusAttr($val){
		$status = ['待审核','待出租','已出租'];
		return $status[$val];
	}
	public function setStatusAttr($val){
		$status = ['待审核','待出租','已出租'];
		return array_search($val,$status);
	}
}

 ?>